﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:local="clr-namespace:QuizSilverlight" x:Class="QuizSilverlight.ParticipantForm"
    Width="400" Height="168" >
    <Grid x:Name="participantGrid">
        <Grid>
                    <StackPanel x:Name="stackPanel" RenderTransformOrigin="0.5,0.5">
                    	<StackPanel.RenderTransform>
                    		<TransformGroup>
                    			<ScaleTransform/>
                    			<SkewTransform/>
                    			<RotateTransform/>
                    			<TranslateTransform/>
                    		</TransformGroup>
                    	</StackPanel.RenderTransform>
                <ContentControl Content="Informations Personnelles :" HorizontalAlignment="Stretch" FontWeight="Bold" FontFamily="Lucida Sans Unicode" FontSize="14.667" Foreground="White" />
                <Grid x:Name="contactGrid" Height="108" Margin="7,0,0,0" d:LayoutOverrides="Width, HorizontalMargin" RenderTransformOrigin="0.5,0.5">
                	<Grid.RenderTransform>
                		<TransformGroup>
                			<ScaleTransform/>
                			<SkewTransform/>
                			<RotateTransform/>
                			<TranslateTransform/>
                		</TransformGroup>
                	</Grid.RenderTransform>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" MinWidth="6" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.290*" />
                        <RowDefinition Height="0.290*" />
                        <RowDefinition Height="0.290*" />
                       
                       
                    </Grid.RowDefinitions>
					
                    <dataInput:ValidationSummary x:Name="validationSummary" Height="32" Visibility="Collapsed"  Margin="-4,0,4,-188" VerticalAlignment="Bottom" Grid.Row="2" d:LayoutOverrides="GridBox"/>
                   
				   	 <TextBlock HorizontalAlignment="Right" VerticalAlignment="Center" Text="Prénom :" Grid.Row="0" Margin="0,4,4,4" Foreground="White" />
                        <TextBox x:Name="firstName" Text="{Binding FirstName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" Grid.Row="0" Grid.Column="1" Margin="4,8,0,4" HorizontalAlignment="Left" Width="170" RenderTransformOrigin="0.5,0.5" >
                        	<TextBox.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform/>
                        			<SkewTransform/>
                        			<RotateTransform/>
                        			<TranslateTransform/>
                        		</TransformGroup>
                        	</TextBox.RenderTransform>
                        </TextBox>
                        <dataInput:DescriptionViewer Target="{Binding ElementName=firstName}" Grid.Row="0" Grid.Column="2"  />

                        <TextBlock x:Name="textBlock" HorizontalAlignment="Right" VerticalAlignment="Center" Text="Nom :" Grid.Row="1" Margin="0,4,4,4" Foreground="White" RenderTransformOrigin="0.5,0.5" >
                        	<TextBlock.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform/>
                        			<SkewTransform/>
                        			<RotateTransform/>
                        			<TranslateTransform/>
                        		</TransformGroup>
                        	</TextBlock.RenderTransform>
                        </TextBlock>
                        <TextBox x:Name="lastName" Text="{Binding LastName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" Grid.Row="1" Grid.Column="1" Margin="4,8,0,4" HorizontalAlignment="Left" Width="170" RenderTransformOrigin="0.5,0.5" >
                        	<TextBox.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform/>
                        			<SkewTransform/>
                        			<RotateTransform/>
                        			<TranslateTransform/>
                        		</TransformGroup>
                        	</TextBox.RenderTransform>
                        </TextBox>
                        <dataInput:DescriptionViewer  Target="{Binding ElementName=lastName}" Grid.Row="1" Grid.Column="2" Height="36" VerticalAlignment="Bottom"/>

                        <TextBlock x:Name="textBlock1" HorizontalAlignment="Right" VerticalAlignment="Center" Text="Numéro de téléphone :" Grid.Row="2" Margin="0,4,4,4" Foreground="White" RenderTransformOrigin="0.5,0.5" >
                        	<TextBlock.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform/>
                        			<SkewTransform/>
                        			<RotateTransform/>
                        			<TranslateTransform/>
                        		</TransformGroup>
                        	</TextBlock.RenderTransform>
                        </TextBlock>
                        <TextBox x:Name="phone" Text="{Binding Phone, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" Grid.Row="2" Grid.Column="1" Margin="4,8,0,4" HorizontalAlignment="Left" Width="170" RenderTransformOrigin="0.5,0.5" >
                        	<TextBox.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform/>
                        			<SkewTransform/>
                        			<RotateTransform/>
                        			<TranslateTransform/>
                        		</TransformGroup>
                        	</TextBox.RenderTransform>
                        </TextBox>
                        <dataInput:DescriptionViewer  Target="{Binding ElementName=phone}" Grid.Row="2" Grid.Column="2" Height="36" VerticalAlignment="Bottom" d:LayoutOverrides="GridBox" />

                  </Grid>
            </StackPanel>
        </Grid>
    	
    </Grid>
</UserControl>
